package com.core.mapper;

import java.util.Collection;
import java.util.Set;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.model.entity.SysRole;
import org.apache.ibatis.annotations.Param;

/**
 * @author zsh
 * @description 针对表【sys_role(系统角色表)】的数据库操作Mapper
 * @createDate 2025-10-18 22:43:01
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
  Set<String> getUserRoleByUserId(Long id);

  Set<String> getUserRoleByUserName(@Param("userName") String userName);

  Collection<String> getPermissionsByUsername(String username);
}
